<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="java.util.*, com.model.DocListService, com.javabean.Doc;"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%
	DocListService dls = new DocListService();
	Vector v = dls.getAllDocList();
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>房产公司工程档案管理系统</title>
<script type="text/javascript" src="../js/jquery-1.9.0.min.js"></script>
<link rel="stylesheet" type="text/css" href="../css/DalldocList.css" />
</head>

<body >

		<form action="" method="post">
			<div class="DocList">
				<div class="DIV1">
				
					<div class="DIV2">
						<input id="return" name="return" class="return" type="button" onclick="javascript:location.href='Dmainpage.jsp'"/>
					</div>
					<div class="DIV3">
						<table width="550" height="30" border="3" align="center" bgcolor="white" >
						<tr align="center" height="30"><td>序号</td><td>文件名</td><td>所有者</td><td>上传日期</td><td>操作</td></tr>
						<%
							Iterator docV = v.iterator(); 
							int i = 1;
							while(docV.hasNext()){
								Doc doc = (Doc)docV.next();
						%>
							
								<tr align="center"  height="30">
									<td><%= i %></td>
									<td><%= doc.getDocName()%></td>
									<td><%= doc.getDocOwner()%></td>
									<td><%= doc.getDocDateOfUp()%></td>
									<td></td>
								</tr>
						<%
								i++;
							}
						%>
			           </table>
	
					</div>
		
				</div>
			</div>

		</form>

</body>
</html>